import React from 'react';
import { Router, Route, Redirect } from 'dva/router';
import IndexPage from './routes/IndexPage';
import IndexPageLogin from './routes/IndexPageLogin';
import IndexPageError from './routes/IndexPageError';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Route path="/" component={IndexPage} />
      <Route path="/login" component={IndexPageLogin} />
      <Route path="/error" component={IndexPageError} />
    </Router>
  );
}

export default RouterConfig;
